﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" 
CodeBehind="List.aspx.cs" Inherits="SinsenWeb.Views.MemberAdmin.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    
    <h2>Instrumenter</h2>
<table>
    <thead>
        <tr>
            <th>Id</th> 
            <th>Navn</th>
            <th>Instrument</th>
            <th>Rediger</th>
            <th>Slett</th>
        </tr>
    </thead>
    <tbody>
        <% foreach (var member in ViewData.Model){ %>
            <tr>
                <td><%= member.Id %></td>
                <td><%= H(member.FullName) %></td>
                <td><%= H(member.InstrumentName) %></td>
                <td><%= Html.EditImageLink("MemberAdmin", member.Id) %></td>
                <td><%= Html.DeleteForm("MemberAdmin",member.Id) %></td>
            </tr>
        <% } %>
    </tbody>
</table>
        <%= Html.ActionLink("Legg til","New") %>
</asp:Content>

